package guo.xungengauth.feign;

import guo.xungengcommon.utils.R;
import guo.xungengcommon.vo.TokenGetUser;
import guo.xungengcommon.vo.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient("xungeng-user")
public interface UserFeign {

    @PostMapping("/user/save")
    public R saveUser(@RequestBody TokenGetUser tokenGetUser);

    @PostMapping("/user/gitee/save")
    public R saveGiteeUser(@RequestBody UserVo userVo);
}
